<?php

namespace addons\tools\library\ali\aip;

use addons\tools\library\ali\Base;
use think\Exception;

class AipBase extends Base
{
    protected $apiEndPoint = 'facebody.cn-shanghai.aliyuncs.com';

    protected $apiVersion = '2019-12-30';


    public function __construct()
    {
        $this->client = new AipHttpClient();
    }

    public function auth()
    {

    }

    public function request($url, $data = [], $headers = [])
    {
        try {
            return $this->client->post($url);
        } catch (Exception $exception) {

        }
    }
}